<@override name="link">
    <link href="${base}/resources/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
</@override>
<@override name="body">
    <body class="gray-bg">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>添加权限</h5>
                    <div class="ibox-tools">
                        <a href="index.html" class="dropdown-toggle" title="返回列表">
                            <i class="fa fa-arrows"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form action="submit" method="post" class="form-horizontal">
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                名称
                            </label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="name" name="name">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                说明
                            </label>
                            <div class="col-sm-8">
                                <textarea name="description" id="description" class="form-control" cols="30" rows="4"></textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                用户管理
                            </label>
                            <div class="col-sm-8">
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="admin:user">
                                        人员设置
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="admin:department">
                                        部门设置
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="admin:position">
                                        岗位设置
                                    </label>
                                </div>

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                公文管理
                            </label>
                            <div class="col-sm-8">
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="official:configuration">
                                        公文配置
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="official:transaction">
                                        拟办公文
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="official:read">
                                        阅读公文
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="official:monitoring">
                                        公文监控
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="official:myOfficial">
                                        我的公文
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                权限设置
                            </label>
                            <div class="col-sm-8">
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:set">
                                        权限设置
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                流程管理
                            </label>
                            <div class="col-sm-8">
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:new">
                                        新建流程
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:agency">
                                        代办流程
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:myFlow">
                                        我的流程
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:monitoring">
                                        流程监控
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:entrust">
                                        流程委托
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="role:set">
                                        流程设置
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label">
                                系统设置
                            </label>
                            <div class="col-sm-8">
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="system:set">
                                        系统设置
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="system:backups">
                                         数据备份
                                    </label>
                                </div>
                                <div class="col-sm-3 checkbox i-checks">
                                    <label>
                                        <input type="checkbox" name="authority" value="system:module">
                                        组件安装
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-4 text-center">
                                <button class="btn btn-primary" type="submit">保存设置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </body>
</@override>
<@override name="script">
    <script type="text/javascript" src="${base}/resources/admin/js/plugins/iCheck/icheck.min.js"></script>
    <script type="text/javascript" src="${base}/resources/admin/js/role.js"></script>
    <script type="text/javascript">
        Role.submit();
    </script>
</@override>
<@extends name="../base/main.html"/>